package org.budo.wxpay.api;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author limingwei
 */
@Getter
@Setter
@Accessors(chain = true)
@ToString
public class OrderQueryResponse implements Serializable {
    private static final long serialVersionUID = 3745631478337403725L;

    private String errCode;

    private String errCodeDes;

    private String tradeState;

    private String tradeStateDesc;

    public Boolean isSuccess() {
        return "SUCCESS".equalsIgnoreCase(this.getTradeState());
    }
}